<?php
class movie_review
{
	var $id = '';
	var $mid = '';
	var $title = '';
	var $author = '';
	
	var $short_desc = '';
	var $content = '';
	var $reply_count = '';
	var $recommend_count = '';
	
	var $up_count = '';
	var $down_count = '';
	var $star = '';
	var $add_time = '';
	
	var $image_list = '';
	
	function __construct($item)
	{
		if(check_array($item))
		{
			$this->id = isset($item['id']) ? $item['id'] : '';
			$this->mid = isset($item['movie_id']) ? $item['movie_id'] : '';
			$this->title = isset($item['title']) ? $item['title'] : '';
			$this->author = isset($item['author']) ? $item['author'] : '';
			
			$this->short_desc = isset($item['short_desc']) ? $item['short_desc'] : '';
			$this->content = isset($item['content']) ? $item['content'] : '';
			$this->reply_count = isset($item['reply_count']) ? $item['reply_count'] : '';
			$this->recommend_count = isset($item['recommend_count']) ? $item['recommend_count'] : '';
			
			$this->up_count = isset($item['up_count']) ? $item['up_count'] : '';
			$this->down_count = isset($item['down_count']) ? $item['down_count'] : '';
			$this->star = isset($item['star_level']) ? $item['star_level'] : '';
			$this->add_time = isset($item['add_time']) ? date('m-d H:i', $item['add_time']) : '';
			
			$this->image_list = isset($item['image_list']) ? $item['image_list'] : array();
		}
	}
	
}